package cn.codeforfun.controller;

import cn.codeforfun.mq.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/2/26.
 */
@RestController
public class TestController {
    @Autowired
    private Sender sender;

    @RequestMapping("/test")
    public void test(String msg) {
        sender.send(msg);
    }
}
